//
//  BottomToolBar.h
//  EPTool
//
//  Created by shiqing guo on 2018/5/5.
//  Copyright © 2018年 云数动能科技. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^TapToolBarBlock)(NSUInteger btnIndex, NSString *btnName);

@interface BottomToolBar : UIView

- (instancetype)initWithFrame:(CGRect)frame andBtnNames:(NSArray <NSString *>*)btnNames andTextColors:(NSMutableArray <UIColor *>*)textColors andBkColors:(NSMutableArray <UIColor *>*)bkColors andMaxCount:(NSUInteger)count;

@property (nonatomic, strong) NSArray <NSString *> *btnNames;
@property (nonatomic, assign) NSMutableArray <UIColor *> *btnTextColors;
@property (nonatomic, assign) NSMutableArray <UIColor *> *btnBkColors;
@property (nonatomic, assign) NSUInteger maxBarBtnCount; // 工具栏上的最多按钮个数，多出变"更多",默认4个
@property (nonatomic, copy)   TapToolBarBlock tapToolBarBlock;


- (void)setBtnNames:(NSArray<NSString *> *)btnNames andTextColors:(NSMutableArray <UIColor *>*)textColors andBkColors:(NSMutableArray <UIColor *>*)bkColors andMaxCount:(NSUInteger)count;

@end
